<!--
 * @Author: zwz
 * @Date: 2023-09-08 21:41:35
 * @LastEditors: zwz
 * @LastEditTime: 2023-09-09 21:35:59
 * @Description: 请填写简介
-->
<template>
  <component :is="currentPageComponent"></component>
</template>

<script>
import home from './home'
import shop from './shop'
import hou from './hou'
import property from './property'
import devicemonitor from './devicemonitor'
import safe from './safe'
export default {
  name: "Index",
  data() {
    return {
      // 版本号
      version: "3.8.6"
    };
  },
  components: {
    home,
    shop,
    hou,
    property,
    devicemonitor,
    safe
  },
  computed: {
    currentPageComponent() {
      if (this.$store.state.tabs.tabValue === 'home') {
        return home
      }
      if (this.$store.state.tabs.tabValue === 'shop') {
        return shop
      }
      if (this.$store.state.tabs.tabValue === 'hou') {
        return hou
      }
      if (this.$store.state.tabs.tabValue === 'property') {
        return property
      }
      if (this.$store.state.tabs.tabValue === 'devicemonitor') {
        return devicemonitor
      }
      if (this.$store.state.tabs.tabValue === 'safe') {
        return safe
      }
    },
  },
  methods: {
    goTarget(href) {
      window.open(href, "_blank");
    }
  }
};
</script>

<style scoped lang="scss">
.home {
  blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
  }
  hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
  }
  .col-item {
    margin-bottom: 20px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  ul {
    list-style-type: none;
  }

  h4 {
    margin-top: 0px;
  }

  h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 100;
  }

  p {
    margin-top: 10px;

    b {
      font-weight: 700;
    }
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
  }
}
</style>

